<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageContent">
    <form action="<?php echo U('Index/save');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <div class="form-group clearfix">
            <label class="x100 pull-left">商品图片:</label>
            <div class="pull-left">
                <!--多上传dom ,-->
                <!-- data-name   hidden的name    组合后 name[] -->
                <div class="multimg clearfix" data-name="pol">
                    <?php if($photolist != null): if(is_array($photolist)): $i = 0; $__LIST__ = $photolist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$po): $mod = ($i % 2 );++$i;?><div class="pull-left"><img src="<?php echo ($po); ?>" width="70"><p class="text-center"><a href="javascript:void(0)" class="remove" data-photo="<?php echo ($po); ?>">删除</a></p></div><?php endforeach; endif; else: echo "" ;endif; endif; ?>
                </div>
                        <span data-toggle="upload"
                              data-uploader="<?php echo U('Index/upload',array('msg'=>I('vids')));?>"
                              data-file-type-exts="*.png;*.jpg"
                              data-icon="cloud-upload"
                              data-multi="true"
                              data-on-upload-success="resultCallphoto"
                              data-auto="true"
                              data-button-text="上传图片"
                        ></span>
            </div>
        </div>
    </form>
</div>
<script>
    var vids = <?php echo I('vids');?>;
    $(function () {
        $('.multimg').on('click', 'a.remove', function () {
            $(this).parents('div.pull-left').eq(0).remove();
            var pho = $(this).attr("data-photo");
       	    delCallphoto(vids,pho);
        });
    });
    $('.resultCall').click(function () {
    	 $(this).dialog('closeCurrent');
    })
</script>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-default resultCall" data-icon="save">确定</button></li>
    </ul>
</div>